# Contributor: Siva Mahadevan <me@svmhdvn.name>
# Maintainer: Siva Mahadevan <me@svmhdvn.name>
pkgname=retroforth
pkgver=2023.9
pkgrel=1
pkgdesc="clean, elegant, and pragmatic dialect of Forth"
url="https://retroforth.org"
arch="all"
license="ISC"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~crc_/retroforth/archive/$pkgver.tar.gz"

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr MANDIR=/usr/share/man/man1 install
}

sha512sums="
79d64f2ec10f415c7458fdc77f92f8a68b4e0beafc9b027a3902e83dc091fbd21b97f27bca433840cc329e300ff8aaaccb186892f9abe0376d23fbde78fb0c72  retroforth-2023.9.tar.gz
"
